<div class="main_body">
	<div id="left_column">
    <?php echo $this->element('main_menu')?>
    </div>
    	
	<div id="main_body_content">

		<div class="Users index">
			<h1><?php __("Managers");?></h1>
			<table cellpadding="0" cellspacing="0">
			<tr>
					<th><?php echo $this->Paginator->sort('email');?></th>
					<th class="actions"><?php __("Actions");?></th>
			</tr>
			<?php
			$i = 0;
			foreach ($managers as $manager):
				$class = null;
				if ($i++ % 2 == 0) {
					$class = ' class="altrow"';
				}
			?>
			<tr<?php echo $class;?>>
				<td><?php echo $manager['User']['email']; ?>&nbsp;</td>
				<td class="actions">					
					<?php echo $this->Html->link($html->image(HOST.'/actions_16_edit.png'), array('action' => 'edit_manag', $manager['User']['id']),array('escape'=>false,'title'=>__("Edit", true))); ?>
					<?php echo $this->Html->link($html->image(HOST.'/actions_16_delete.png'), array('action' => 'delete_manag', $manager['User']['id']), array('escape'=>false,'title'=>__("Delete", true)), sprintf(__("Are you sure you want to delete # %s?", true), $manager['User']['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
			</table>
			<p>
			<?php
			echo $this->Paginator->counter(array(
			'format' => __("Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%", true)
			));
			?>	</p>
		
			<div class="paging">
				<?php echo $this->Paginator->prev('<< ' . __("previous", true), array(), null, array('class'=>'disabled'));?>
			 | 	<?php echo $this->Paginator->numbers();?>
		 |
				<?php echo $this->Paginator->next(__("next", true) . ' >>', array(), null, array('class' => 'disabled'));?>
			</div>
		</div>

		
		
		<div class="clr"></div>	
	</div>			
	<?php echo $this->element('languages')?>	
	<div class="clr"></div>
</div>	
<div class="clr"></div>	
<div class="main_action">
	<div class="main_action_content">
		
		<div class="actions">
			<h3><?php __("Actions"); ?></h3>
			<ul>		
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_customer_add.png'), array('controller' => 'setup', 'action' => 'add_manag'),array('escape'=>false,'title'=>__("New Manager", true))); ?><div class="clr"></div>	 <?php echo __("New Manager", true)?> </li>
				<li><?php echo $this->Html->link($html->image(HOST.'/actions_setup_index.png'), array('controller' => 'setup','action' => 'index'),array('escape'=>false,'title'=>__("Setup",true)));?><div class="clr"></div>	<?php echo __("Setup",true)?></li>			
			</ul>
		</div>	
		
		<div class="clr"></div>
	</div>		
</div>